<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
</head>
<body>

    <script type="text/javascript">
        function sum(sum2){
        	sum1 = 0;
        	for(var i=0;i<=sum2;i++){
        		sum1 += i;
        	}

        	alert(sum1);
        }

        sum(100);
        sum(50);


        function  num(x,y){
        	all = x*35+y;
        	return all;
        }
        all = num(10,59);
        alert(all s);

    </script>
	
</body>
</html>